package xmldatabase;
import java.sql.*;
public class Login1 {
	
	
	
	
		Login t = new Login();
		 String user1 =request.getParament(“user2”);
		 String pass1=request.getParament(“pass”2);
		t.auth(user1);
		if(t.password==pass1)
		{
			if(t.position==“1”)
			{
				request.getRequestDispatcher("").forward(request, response);//jsp路径
			}
			if(t.position==“2”)
			{
				request.getRequestDispatcher("").forward(request, response);
			}
			if(t.position==“3”)
			{
				request.getRequestDispatcher("").forward(request, response);
			}
			
		}
		else {//返回登录界面
			request.getRequestDispatcher("").forward(request, response);
		      }
}
